<div class="row">
    <h2>User Login</h2>
    <hr/>
    <div class="alert alert-danger" *ngIf="!success">Username or password is not correct!</div>
    <form [formGroup]="formGroup" (ngSubmit)="doLogin()">
        <div class="form-group">
            <label for="username">User name</label>
            <input type="email" class="form-control" id="username" placeholder="User name" formControlName="username">
        </div>
        <div class="form-group">
            <label for="password">Password</label>
            <input type="password" class="form-control" id="password" placeholder="Password" formControlName="password">
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
        <a routerLink="/auth/registration" class="btn btn-default">Registration</a>
    </form>
</div>
